package cn.zsb.web;

import cn.zsb.printer.TextPaper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
public class NihaoController {
    @Autowired
    @Qualifier("a4paper")
    private TextPaper paper;

    @GetMapping("findA4")
    public TextPaper getA4(){
        return paper;
    }
}
